<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="你的js文件目录"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            height: 300px;
            width: 300px;
            margin: auto;
            /*background: bisque;*/
            border: 1px solid black;
            position: relative;
            /*box-sizing: border-box;*/
        }
        .box div{
            height: 100px;
            width: 100px;
            float: left;
        }
        .box div:nth-of-type(1){
            background: black;
            position: absolute;
            top: 200px;
        }
        .box div:nth-of-type(2){
            background: gold;
            position: absolute;
            left: 200px;
        }
        .box div:nth-of-type(3){
            background: blue;
            position: absolute;
            top: 200px;
            left: 200px;
        }
        .box div:nth-of-type(4){
            background: greenyellow;
            position: absolute;
        }
        .box div:nth-of-type(5){
            background: brown;
            position: absolute;
            margin: auto;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
        }
    </style>
</head>
<body>
    <div class="box">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</body>
</html>